<template>
	<view>
		<button @click="gotoAddressMange">地址管理页</button>
		<button @click="gotoPickerAddress">选一个地址</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			gotoAddressMange() {
				uni.navigateTo({
					url:"/pages/content/addressManage/addressManage"
				})
			},
			gotoPickerAddress() {
				uni.navigateTo({
					url:"/pages/content/addressManage/addressManage?type=picker",
					events: {
						pickerAddress:(event) => {
							// 这里获取picker到的地址
							console.log('---- 选到的地址是 ----: ', event.data)
						}
					}
				})
			}
		}
	}
</script>

<style>

</style>
